package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;

/**
 * 采购订单交货明细对象 erp_order_delivery_detail
 *
 * @author cxl
 * @date 2024-06-06
 */
@Accessors(chain = true)
@TableName ("erp_order_delivery_detail")
@ApiModel (value = "采购订单交货明细", description = "采购订单交货明细")
@Data
public class OrderDeliveryDetailEntity {

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 采购订单id */
    @ApiModelProperty ("采购订单id")
    @TableField ("order_id")
    @Excel (name = "采购订单id")
    private String orderId;

    /** 采购订单交货表id */
    @ApiModelProperty ("采购订单交货表id")
    @TableField ("order_delivery_id")
    @Excel (name = "采购订单交货表id")
    private String orderDeliveryId;

    /** 交货日期 */
    @ApiModelProperty ("交货日期")
    @TableField ("delivery_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "交货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 计划单位 */
    @ApiModelProperty ("计划单位")
    @TableField ("plan_unit")
    @Excel (name = "计划单位")
    private String planUnit;

    /** 数量 */
    @ApiModelProperty ("数量")
    @TableField ("num")
    @Excel (name = "数量")
    private String num;

    /** 已交货数量 */
    @ApiModelProperty ("已交货数量")
    @TableField ("delivered_num")
    @Excel (name = "已交货数量")
     private String deliveredNum;

    /** 剩余数量 */
    @ApiModelProperty ("剩余数量")
    @TableField ("surplus_num")
    @Excel (name = "剩余数量")
    private String surplusNum;

    /** 交货地点 */
    @ApiModelProperty ("交货地点")
    @TableField ("location")
    @Excel (name = "交货地点")
    private String location;

    /** 交货地址 */
    @ApiModelProperty ("交货地址")
    @TableField ("address")
    @Excel (name = "交货地址")
    private String address;

    /** 确认交货数量 */
    @ApiModelProperty ("确认交货数量")
    @TableField ("confirm_num")
    @Excel (name = "确认交货数量")
     private String confirmNum;

    /** 确认交货日期 */
    @ApiModelProperty ("确认交货日期")
    @TableField ("confirm_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "确认交货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date confirmTime;

    /** 确认意见 */
    @ApiModelProperty ("确认意见")
    @TableField ("confirm_comment")
    @Excel (name = "确认意见")
    private String confirmComment;

    /** 录入人 */
    @ApiModelProperty ("录入人")
    @TableField ("user_id")
    @Excel (name = "录入人")
    private String userId;

    @ApiModelProperty ("创建时间")
    @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
    @TableField ("create_time")
    private Date createTime;

        /** 更新时间 */
    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    private Integer isUsed;




}
